package com.transac.demo.controller;

import com.transac.demo.service.TransactionSupportsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/")
public class TestSupportController {
    @Autowired
    TransactionSupportsService transactionSupportsService;


    @PostMapping("/testSupport1")
    @ResponseBody
    public void testSupport1() {
        transactionSupportsService.updateMoney1();
    }

    @PostMapping("/testSupport2")
    @ResponseBody
    public void testSupport2() {
        transactionSupportsService.updateMoney2();
    }

    @PostMapping("/testSupport3")
    @ResponseBody
    public void testSupport3() {
        transactionSupportsService.updateMoney3();
    }

    @PostMapping("/testSupport4")
    @ResponseBody
    public void testSupport4() {
        transactionSupportsService.updateMoney4();
    }

    @PostMapping("/testSupport5")
    @ResponseBody
    public void testSupport5() {
        transactionSupportsService.updateMoney5();
    }
}
